import wmcRequest from '..'
import { IModuleDrives } from '@/render/store/drives/types'
export function updateModuleDrives(moduleDrives: IModuleDrives): any {
  return wmcRequest.patch({
    url: '/drives',
    data: moduleDrives
  })
}

export function getModuleDrives(
  projectName: string,
  projectModuleName: string
): any {
  return wmcRequest.get({
    url: `/drives?projectName=${projectName}&projectModuleName=${projectModuleName}`
  })
}
